package net.crisps.cloud.utils.common_util;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * @author tangchuan
 * @date 2023/11/18 20:41
 */
public class CustomListUtil {

    public static <T> List<T> toArrayList(T... ts) {
        List<T> list = new ArrayList<>();
        if (ts != null) {
            Collections.addAll(list, ts);
        }
        return list;
    }
}
